From: Wei Liu Date: Fri, 10 Nov 2017 12:36:49 +0000 (+0000) Subject: x86: introduce ELFNOTE macro X-Git-Tag: archive/raspbian/4.11.1-1+rpi1~1^2~66^2~810 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https://%22%22/%22http:/www.example.com/cgi/%22https:/%22%22?a=commitdiff_plain;h=cb3842d5ee5cd422c147e821ba2249aefa7e04ce;p=xen.git x86: introduce ELFNOTE macro It is needed later for introducing PVH entry point. Signed-off-by: Wei Liu --- diff --git a/xen/include/asm-x86/asm_defns.h b/xen/include/asm-x86/asm_defns.h index 9cfd79f0c6..d2d91ca1fa 100644 --- a/xen/include/asm-x86/asm_defns.h +++ b/xen/include/asm-x86/asm_defns.h @@ -374,4 +374,16 @@ static always_inline void stac(void) #define REX64_PREFIX "rex64/" #endif +#define ELFNOTE(name, type, desc) \ + .pushsection .note.name, "a", @note ; \ + .p2align 2 ; \ + .long 2f - 1f /* namesz */ ; \ + .long 4f - 3f /* descsz */ ; \ + .long type /* type */ ; \ +1: .asciz #name /* name */ ; \ +2: .p2align 2 ; \ +3: desc /* desc */ ; \ +4: .p2align 2 ; \ + .popsection + #endif /* __X86_ASM_DEFNS_H__ */